-- GENERATED SPELL FOR [Amani Shadowpriest] --


function spell0_15642(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(11639,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15642', 18000, 1)
end

function Sorts_15642(pUnit, Event)
local choix_sorts_15642 = math.random(0, 0)
if choix_sorts_15642 == 0 then
pUnit:RegisterEvent('spell0_15642', 1, 1)
end
end

function mob15642_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15642', math.random(1500, 3000), 1)
end

function mob15642_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15642_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15642_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15642, 1, 'mob15642_Action')
RegisterUnitEvent(15642, 2, 'mob15642_Leave')
RegisterUnitEvent(15642, 3, 'mob15642_Kill')
RegisterUnitEvent(15642, 4, 'mob15642_Die')
